package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.alipaymchbatch.AlipayMchBatchQuery;
import com.uzai.console.entity.AlipayDetail;
import com.uzai.console.entity.AlipayMchBatch;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface AlipayMchBatchMapper {
    
    int deleteById(@Param("id") Long id);

    int insert(AlipayMchBatch record);

    int insertSelective(AlipayMchBatch record);

    AlipayMchBatch selectById(@Param("id") Long id);

    AlipayMchBatch selectByOutBatchNo(@Param("outBatchNo") String outBatchNo);

    int updateByIdSelective(AlipayMchBatch record);

    int updateById(AlipayMchBatch record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<AlipayMchBatch> findByList(Page<AlipayMchBatch> page, @Param("query") AlipayMchBatchQuery query);
}